package com.zb.kl.domain.task;

import lombok.Data;

import java.util.Map;

@Data
public class TaskStatusUpdateEvent extends TaskUpdateEvent<TaskStatus> {

    String id;

    TaskStatus status;

    //是否终止任务状态
    boolean finalFlag;

    Map<String, Object> metadata;

    public TaskStatusUpdateEvent() {
    }

    public TaskStatusUpdateEvent(String id, TaskStatus status, boolean finalFlag) {
        this.id = id;
        this.status = status;
        this.finalFlag = finalFlag;
    }

}

